public class User {
    // 属性：账号、密码、邮箱
    private String account; // 账号
    private String code; // 密码
    private String email; // 邮箱

    // 构造方法，初始化账号、密码、邮箱
    public User(String account, String code, String email) {
        this.account = account;
        this.code = code;
        this.email = email;
        System.out.println("User()"); // 构造函数的提示
    }

    // 无参构造方法，提供默认值
    public User() {
        this("chenyuchen", "010110", "18633350425@.QQ.com");
    }

    // 输出用户信息
    public void output() {
        System.out.println("账号：" + this.account + "；");
        System.out.println("密码：" + this.code + "；");
        System.out.println("邮箱：" + this.email);
    }

    // 设置账号
    public void setAccount(String account) {
        this.account = account;
    }

    // 设置密码
    public void setCode(String code) {
        this.code = code;
    }

    // 设置邮箱
    public void setEmail(String email) {
        this.email = email;
    }

    public static void main(String[] args) {
        // 创建User对象
        User use1 = new User("chenyuchen", "010110", "未设置");
        User use2 = new User("牢爷", "010106", "18633350425@.QQ.com");

        // 输出用户信息
        System.out.println("User1");
        use1.output();

        System.out.println("User2");
        use2.output();
    }
}
